# GENERATED BY: test/help_test.dart

## Section 0
$ pub upgrade --help
Upgrade the current package's dependencies to latest versions.

Usage: pub upgrade [dependencies...]
-h, --help                 Print this usage information.
    --[no-]offline         Use cached packages instead of accessing the network.
-n, --dry-run              Report what dependencies would change but don't change any.
    --[no-]precompile      Precompile executables in immediate dependencies.
    --tighten              Updates lower bounds in pubspec.yaml to match the resolved version.
    --unlock-transitive    Also upgrades the transitive dependencies of the listed [dependencies]
    --major-versions       Upgrades packages to their latest resolvable versions, and updates pubspec.yaml.
    --[no-]example         Also run in `example/` (if it exists).
                           (defaults to on)
-C, --directory=<dir>      Run this in the directory <dir>.

Run "pub help" to see global options.
See https://dart.dev/tools/pub/cmd/pub-upgrade for detailed documentation.

